import Cookies from 'js-cookie'
import constant from './parent_connect/constant'

export function getToken() {
  return Cookies.get(constant.tokenKey)
}

export function getTokenForCookie() {
  return Cookies.get('HTtoken')
}

export function setToken(token) {
  return Cookies.set(constant.tokenKey, token)
}

export function removeToken() {
  return Cookies.remove(constant.tokenKey)
}
